package com.xmutca.micro.common;

import java.io.Serializable;

/**
 * 分页对象
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-07-08 23:09
 */
public class Paging implements Serializable {

    /**
     * 页面大小
     */
    private int size = 10;

    /**
     * 总记录数
     */
    private int count = 0;

    /**
     * 当前页面
     */
    private int current = 1;

    public Paging() {

    }

    public Paging(int size) {
        this.size = size;
    }

    public Paging(int current, int size, int count) {
        this.current = current;
        this.size = size;
        this.count = count;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }
}
